
    function sAlert(str){
        var msgw,msgh,bordercolor;
        msgw=400;//提示窗口的宽度
        msgh=200;//提示窗口的高度
       // titleheight=25 //提示窗口标题高度
       // bordercolor="#c51100";//提示窗口的边框颜色
        //titlecolor="#fff";//提示窗口的标题颜色

        //遮罩层
        var bgObj=document.createElement("div");
        document.body.appendChild(bgObj);
        $("body").append("<div id='mask'></div>");
        $("#mask").addClass("mask").fadeIn("slow");

        //弹出框
        var msgObj=document.createElement("div")
        msgObj.setAttribute("id","msgDiv");
        msgObj.setAttribute("align","center");
        msgObj.style.background="white";
        msgObj.style.borderRadius="6px";
        msgObj.style.boxShadow="0 3px 9px rgba(0,0,0,0.5)";
        msgObj.style.position = "fixed";
        msgObj.style.left = "50%";
        msgObj.style.bottom = "50%";
        msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
        msgObj.style.marginLeft = "-225px" ;
        msgObj.style.marginTop = -75+document.documentElement.scrollTop+"px";
        msgObj.style.width = msgw + "px";
        msgObj.style.height =msgh + "px";
        msgObj.style.textAlign = "center";
        msgObj.style.lineHeight ="25px";
        msgObj.style.zIndex = "10001";

        //弹出框头部
        var title=document.createElement("h4");
        var hrT=document.createElement("hr");
        hrT.style.margin="0";
        hrT.style.clear="both";
        title.setAttribute("id","msgTitle");
        title.setAttribute("align","center");
        title.style.margin="0 0 0 370px";
        title.style.padding="8px 0 0 0";
        title.style.filter="progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);";
        title.style.opacity="0.75";
        title.style.height="30px";
        title.style.width="30px";
        //title.style.float="right";
        title.style.font="12px Verdana, Geneva, Arial, Helvetica, sans-serif";
        title.style.color="black";
        title.style.cursor="pointer";
        title.innerHTML="×";

        //弹出框底部
        var hrB=document.createElement("hr");
        var guan=document.createElement("h3");
        hrB.style.margin="0";
        hrB.style.clear="both";
        /*guan.setAttribute("id","msgBottom");
        guan.style.height="30px";
        guan.style.width="80px";
        guan.style.background="#73af25"
        guan.style.color="#fff"
        guan.style.font="14px Verdana, Geneva, Arial, Helvetica, sans-serif";
        guan.style.float="right";
        guan.style.margin="15px 20px 0 0";
        guan.style.padding="6px 0px 0 0";
        guan.style.cursor="pointer";
        guan.innerHTML="确定";*/

        title.onclick=guan.onclick=function(){
            $("#mask").css({ display: 'none' });
        document.body.removeChild(bgObj);
        document.getElementById("msgDiv").removeChild(title);
        document.getElementById("msgDiv").removeChild(guan);
        document.body.removeChild(msgObj);
        }
        document.body.appendChild(msgObj);
        document.getElementById("msgDiv").appendChild(title);
        document.getElementById("msgDiv").appendChild(hrT);
        var txt=document.createElement("p");
        txt.style.margin="40px 0"
        txt.setAttribute("id","msgTxt");
        txt.innerHTML=str;
        document.getElementById("msgDiv").appendChild(txt);
        document.getElementById("msgDiv").appendChild(hrB);
        document.getElementById("msgDiv").appendChild(guan);
        }
